#ifndef SERVER_LISTEN_VIEW_H
#define SERVER_LISTEN_VIEW_H

#include "ServerListenModel.h"
#include "View.h"
#include "Screen.h"
#include "d3dx9.h"
#include "d3d9.h"
#include <string>

const int ServerListenChoices = 2;
const int NUMBER_LENGTH = 20;

const LPCSTR _serverListenTitle = "Server: Listening for clients";
const int _serverListenTitleLen = strlen(_serverListenTitle);

const LPCSTR _serverStartOption = "Start Game";
const int _serverStartLen = strlen(_serverStartOption);

const LPCSTR _serverBackOption = "Back";
const int _serverBackLen = strlen(_serverBackOption);

const D3DCOLOR _serverListenTextColor = D3DCOLOR_ARGB(255, 255, 255, 255);
const D3DCOLOR _serverListenSelColor = D3DCOLOR_ARGB(150, 255, 255, 255);

class ServerListenView: public View
{
  public:
    ServerListenView(Screen* s, Model* m, LPDIRECT3DDEVICE9 dd3d);
    ~ServerListenView(void);
    void InitRects(void);
  protected:
    void PreRender(void);
    void PostRender(void);
    void Draw(void);
    void HandleMessage(Message* msg);
  private:
    LPD3DXFONT _font;
    LPD3DXFONT _fontOption;
    ServerListenModel* _model;
    RECT _titleRect;
    //make it an array in case I choose to add things
    RECT _textRect[2];
};

#endif
